package com.trt.ecommerce;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @version 1.0
 * @author: trt
 * @description: Nacos Client 工程启动入口  http://localhost:8848/nacos/
 * 此工程为概念验证的项目不是必须
 * @create: 2021-08-15 19:32
 */
@ServletComponentScan // 扫描过滤器
@EnableCircuitBreaker // 启用 Hystrix
@EnableFeignClients
@RefreshScope // 刷新配置
@EnableDiscoveryClient
@SpringBootApplication
public class NacosClientApplication {

    public static void main(String[] args) {
        SpringApplication.run(NacosClientApplication.class, args);
    }



}